#ifndef _RETRO_EDITPROJECT
#define _RETRO_EDITPROJECT

namespace Retro
{
  namespace Creator
  {
    namespace Dialog
    {
      class EditProject : public DialogBase {
      private:
        HWND
          hCombSize;
        HWND
          hEditName,
          hEditPath;
        Label
          lblName,
          lblPath,
          lblSize;
        Button
          btnPath,
          btnOK,
          btnCancel;
        Separator
          sepButtons,
          sepName;
        BROWSEINFO      brwPath;
        TCHAR           path[MAX_PATH];
        BOOL            isNew;

        VOID            formatPath();

      protected:
        VOID            onNotify(Event::NotifyEvent& iEvent);
        VOID            onCommand(Event::CommandEvent& iEvent);
        VOID            onLoad();
        VOID            onUnload();
        VOID            onInit();

      public:
        INL PCTSTR      getProjectPath() { return path; }

        VOID            setProject(Data::RetroProject* value);
        VOID            getProject(Data::RetroProject* value);
        VOID            newProject();
      };
    } // namespace Dialog
  } // namespace Creator
} // namespace Retro

#endif